import { priority } from "./definetypes"

export var structurePriority: {[key:string]:number} = {
    [STRUCTURE_SPAWN]:2,
    [STRUCTURE_CONTAINER]:3,
    [STRUCTURE_EXTENSION]:4,
    [STRUCTURE_LAB]:5,
    [STRUCTURE_LINK]:2,
    [STRUCTURE_ROAD]:6,
    [STRUCTURE_TOWER]:1,
    [STRUCTURE_RAMPART]:64,
    [STRUCTURE_WALL]:64,
    [STRUCTURE_STORAGE]:2,
    [STRUCTURE_TERMINAL]:2,
    [STRUCTURE_FACTORY]:7,
    [STRUCTURE_OBSERVER]:7,
    [STRUCTURE_POWER_SPAWN]:7
}
export const spawnPriority:Record<RoleName,number>=
{
    mine: priority.A,
    porter: priority.B,
    upgrader: priority.E,
    filler: priority.SS,
    worker: priority.D,
    carry: priority.B,
    scout: priority.A,
    claimer: priority.F,
    idaBlue: priority.A,
    idaRed: priority.A,
    idaHeal: priority.A,
    defRed: priority.A,
    defBlue: priority.A,
    manager: priority.S,
    minex: priority.E,
    helpWorker: priority.B,
    porter_w:  priority.B,
}

export const  destoryPriority: {[key:string]:number} = {
    [STRUCTURE_SPAWN]:1,
    [STRUCTURE_EXTENSION]:3,
    [STRUCTURE_LAB]:4,
    [STRUCTURE_LINK]:5,
    [STRUCTURE_ROAD]:10,
    [STRUCTURE_TOWER]:3,
    [STRUCTURE_RAMPART]:11,
    [STRUCTURE_WALL]:11,
    [STRUCTURE_STORAGE]:5,
    [STRUCTURE_TERMINAL]:5,
    [STRUCTURE_FACTORY]:5,
    [STRUCTURE_OBSERVER]:6,
    [STRUCTURE_POWER_SPAWN]:4,
    [STRUCTURE_NUKER]:2
}